Skip to main content

Carkeys

Introduction

Clear script for locking player vehicles, optimized on server & client side + many more features

Get it now!

Features

  • Lock personaly/society owned vehicles
  • Give vehicle keys to other players
  • Reset vehicle keys at Locksmith (place on the map)
  • Give temporarily keys of vehicle
  • Optimized client & server side

Instalation

  • Drop the script into your resources folder and start it in your server.cfg
  • Run the sql.sql file
  • For optional export ussage, take a look bellow

Controls

  • /givekeys - Give keys to a player
  • /lockvehicle or J - Lock closest vehicle

Exports

  • Server side
    • exports['sqz_carkeys']:resetPlate(plate) - Resets a vehicle plate's cache
    • exports['sqz_carkeys']:giveTempKeys(plate, identifier, timeout) - Adds temporarily keys to a player (until the server), timeout is an optional param, time in ms until the key is reset